package packed_widgets

import (
	"fmt"

	"file_explorer/common/log"

	"fyne.io/fyne/v2"
)

func NotifyInfo(format string, args ...any) {
	msg := fmt.Sprintf(format, args...)
	log.Info(msg)
	fyne.CurrentApp().SendNotification(&fyne.Notification{
		Title:   "NotifyInfo",
		Content: msg,
	})
}

func NotifyError(format string, args ...any) {
	msg := fmt.Sprintf(format, args...)
	log.Error(msg)
	fyne.CurrentApp().SendNotification(&fyne.Notification{
		Title:   "NotifyError",
		Content: msg,
	})
}
